This script will not submit unless the text field contains an at-sign (@).
function validate() { if ((document.forms[0].F1.value.length == 0) || (document.forms[0].F1.value.indexOf('@') < 0)) { alert('You must enter an e-mail address') return false } else return true }